import io.reactivex.Completable;

public class C17 {

    public static void main(String[] args) {
        /* Completable is simply concerned with an action being executed, 
         * but it does not receive any emissions. Logically, it does not have 
         * onNext() or onSuccess() to receive emissions, but it does have onError() and onComplete()
         */
        Completable.fromRunnable(() -> runProcess())
                   .subscribe(() -> System.out.println("Done!"));
    }

    public static void runProcess() {
        //run process here
    }

}
//EOP
